package com.brush.brushcommon.common.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.brush.brushcommon.common.basic.pojo.Category;
import com.brush.brushcommon.dto.Result;

import java.util.List;

/**
 * <p>
 * 题库分类表 服务类
 * </p>
 *
 * @author debug
 * @since 2024-07-14
 */
public interface CategoryService extends IService<Category> {


    /**
     * 分类tree
     * @param categoryName
     * @return
     */
    Result treeList(String categoryName);


    /**
     * 添加分类
     * @param category
     * @return
     */
    Result addCategory(Category category);

    /**
     * 修改分类
     * @param category
     * @return
     */
    Result updateCategory(Category category);

    /**
     * @author cws
     * @param id
     * @return Result
     * @date 2024/8/2 15:28
     * @description 删除分类
     */

    Result deleteCategory(String id);

    /**
     * @author cws
     * @param ids
     * @return Result
     * @date 2024/8/2 15:28
     * @description 批量删除分类
     */
    Result deleteCategoryBatch(List<String> ids);
}
